{extend name="default/base" /}
{block name="title"}我的购物车 - {:WSTConf('CONF.mallName')}{__block__}{/block}
{block name="css"}
<link href="__STYLE__/css/carts.css?v={$v}" rel="stylesheet">
{/block}
{block name="main"}
<div class="wst-container">
	<div id="stepflex" class="stepflex">
       <dl class="first doing">
          <dt class="s-num">1</dt>
          <dd class="s-text">我的购物车</dd>
          <dd></dd>
       </dl>
       <dl class="normal doing">
          <dt class="s-num">2</dt>
          <dd class="s-text">填写核对订单信息</dd>
       </dl>
       <dl class="last">
          <dt class="s-num1">3</dt>
          <dd class="s-text1">成功提交订单</dd>
       </dl>
    </div>
    <div class='wst-clear'></div>
    <div class='main-head'>填写并核对订单</div>
    <!-- 支付方式 -->
    <div class='pay-box' style='border-top:2px solid #fc7a64'>
       <div class='box-head'>支付方式</div>
       <div class="wst-list-box">
          {if !empty($payments['1'])}  
          <div class="wst-frame2 j-selected" onclick="javascript:changeSelected(1,'payType',this)">在线支付<i></i></div>
          {/if}
          <input type='hidden' value='0' id='payType' class='j-ipt' />
          <div class='wst-clear'></div>
       </div>
    </div>
    <!-- 商品清单 -->
    <div class='cart-box2'>
       <div class='box-head2'>商品清单</div>
       <div class='cart-head2'>
          <div class='goods2'>商品</div>
          <div class='price2'>单价</div>
          <div class='num2'>数量</div>
          <div class='t-price2'>总价</div>
       </div>
       {volist name='$carts["carts"]' id='cartShops'}
        <div class='cart-item j-shop' dataval='{$cartShops['shopId']}'>
          <div class='shop2'>
          {$cartShops['shopName']}
          {if $cartShops['shopQQ'] !=''}
          <a href="tencent://message/?uin={$cartShops['shopQQ']}&Site=QQ交谈&Menu=yes">
			  <img border="0" src="{:WSTProtocol()}wpa.qq.com/pa?p=1:{$cartShops['shopQQ']}:7" alt="QQ交谈" width="71" height="24"/>
		  </a>
          {/if}
          {if $cartShops['shopWangWang'] !=''}
          <a target="_blank" href="{:WSTProtocol()}www.taobao.com/webww/ww.php?ver=3&touid={$cartShops['shopWangWang']}&siteid=cntaobao&status=1&charset=utf-8">
			  <img border="0" src="{:WSTProtocol()}amos.alicdn.com/realonline.aw?v=2&uid={$cartShops['shopWangWang']}&site=cntaobao&s=1&charset=utf-8" alt="和我联系" />
		  </a>
          {/if}
          </div>
          {:hook('homeDocumentSettlementShopPromotion',['shop'=>$cartShops])}
          <div class='goods-list'>
            {volist name='cartShops["list"]' id='cartGoods'}
            {:hook('homeDocumentSettlementGoodsPromotion',['goods'=>$cartGoods])}
            <div class='item selected'>
		        <div class='goods2'>
		            <div class='img2'>
		                <a href='{:Url("home/goods/detail","goodsId=".$cartGoods["goodsId"])}' target='_blank'>
			            <img src='__RESOURCE_PATH__/{$cartGoods["goodsImg"]}' width='80' height='80' title='{$cartGoods["goodsName"]}'/>
			            </a>
		            </div>
		            <div class='name2'>{$cartGoods["goodsName"]}</div>
		            <div class='spec2'></div>
		        </div>
		        <div class='price2'>¥{$cartGoods['shopPrice']}</div>
		        <div class='num2'>{$cartGoods['cartNum']}</div>
		        <div class='t-price2'>¥{$cartGoods['shopPrice']*$cartGoods['cartNum']}</div>
		        <div class='wst-clear'></div>
             </div>
            {/volist}
             <div class='shop-remark selected2'>
              <div class='shop-remark-box'>
                 订单备注：<input type='text' id="remark_{$cartShops['shopId']}" class='j-ipt' style='width:420px' maxLength='100' placeholder='给卖家留言'/>
              </div>
              <div class='shop-summary'>
               {if !empty($cartShops['coupons'])}
                {:hook('homeDocumentSettlementShopSummary',['coupons'=>$cartShops['coupons'],'shopId'=>$cartShops['shopId']])}
                {else}
                  <input type='hidden'  class='j-ipt' id='couponId_{$cartShops['shopId']}'/>
                {/if}
                <div class='row'>
                  <dt>店铺合计：</dt><dd>￥<span id="shopC_{$cartShops['shopId']}" v="{$cartShops['goodsMoney']}" style='font-weight: bold;color: #E55356;'>{:WSTPositiveNum($cartShops['goodsMoney']-$cartShops['promotionMoney'])}</span></dd>
                </div>
              </div>
           </div>
          </div>
       </div>
       {/volist}
       <div class='cart-footer'>
          <div class='cart-summary2'>
          	<div class="summarys2">
    <!-- 发票信息 -->
     <div class="pay-boxs">
       <div class='box-head'>发票信息</div>
         <div class="j-show-box">

         <div style="float:left;" id="invoice_info">不开发票</div>
         <div style="float:left;color:blue;margin-left:10px;cursor:pointer;" onclick='javascript:changeInvoice(1,"#invoiceClientDiv",this)'>修改</div>

         <div class="wst-clear"></div>
          <input type="hidden" id="invoice_obj" value="0" />
           <input type="hidden" id="invoiceId" value="0" class='j-ipt' />
           <input type='hidden' value='0' id='isInvoice' class='j-ipt' />
           <input type='hidden' value='个人' id='invoiceClient' class='j-ipt' />
       </div>
       <div class='wst-clear'></div>
     </div>

          	</div>
          	<div class="summarys3" style='text-align:right;padding-right:20px'>
             {if WSTConf('CONF.isOpenScorePay')==1}
             <div>
             （共有<span id='maxScoreSpan'>{$userOrderScore}</span>个积分，可抵¥<span id='maxScoreMoneySpan'>{$userOrderMoney}</span>）
             <input type='checkbox' id='isUseScore' autocomplete="off" onclick='javascript:checkScoreBox(this.checked)' dataval="{$userOrderScore}"/>积分支付
             <span id='scoreMoney' style='display:none'>
             ，使用积分<input type="text" id="useScore" style="width:50px;margin-left:5px" class='j-ipt' onkeyup="javascript:WST.isChinese(this,1)" autocomplete="off" onkeypress="return WST.isNumberKey(event)" onblur="javascript:getCartMoney()" value="{$userOrderScore}"/>
             </span>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¥-<span id='scoreMoney2'>0.0</span></div>
             {/if}
             <div class='summary2'>应付总金额：¥<span id='totalMoney' v='{$carts["goodsTotalMoney"]}'>
             {:WSTPositiveNum($carts["goodsTotalMoney"]-$carts['promotionMoney'])}
             </span></div>
             <div {if WSTConf('CONF.isOrderScore')!=1 }style='display:none'{/if}>可获得积分：<span id='orderScore'>{:WSTMoneyGiftScore($carts["goodsTotalMoney"],0)}</span>个</div>
             </div>
             <div class='wst-clear'></div>
          </div>         
       </div>
    </div>
     <div class='cart-btn'>
        
        <a href='javascript:void(0)' onclick='javascript:submitOrder()' class='wst-order wst-cart-reda' style='width:118px;height:33px;line-height:33px;'>提交订单</a>
        <div class='wst-clear'></div>
     </div>
</div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/js/carts_quick.js?v={$v}'></script>
{/block}